import os


def load_config():
    environment = os.environ.get('ENVIRONMENT', 'DEV')
    try:
        if environment == 'PRO':
            from .pro import settings
        else:
            from .dev import settings
        return settings
    except ImportError:
        print("配置文件加载错误")


CONFIG = load_config()
